
<?php
if($_SESSION["username2"]==""){
echo "<script>alert('您沒有訪問權限，請先登入!');window.open('index.php','_top');</script>";
}

if($_SESSION["username2"]!=""){


$sql=mysql_query("select * from guanli where username = '".$_SESSION["username2"]."'   ");
$result=mysql_fetch_array($sql);
if ($result==false){
	echo "<script>alert('您沒有訪問權限，請先登入!');window.openindex.php','_top');</script>";
}



}




?>

